# -*- coding: utf-8 -*-
"""
created on 2017/12/8 12:57

@author: didichen
"""

# 开始url：http://www.pythonchallenge.com/pc/return/evil.html
# 结束url：http://www.pythonchallenge.com/pc/return/disproportional.html


with open('evil2.gfx', 'rb') as fr:
    data = fr.read()
    for i in range(5):
        with open('level12%d.jpg' % i, 'wb') as pngfr:
            pngfr.write(data[i::5])
